<template>
  <el-form-item prop="soundId" label="音频序列号">
    <el-select v-model="optionModel.soundId" placeholder="Select" style="width: 240px">
      <el-option v-for="item in audioList" :key="item" :label="item" :value="item" />
    </el-select>
  </el-form-item>
</template>

<script>
import { GET_AUDIO_RESOURCE_LIST, GET_AUDIO_RESOURCE_LIST_RESULT } from '@/designer/event'

export default {
  name: 'SoundIdEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object
  },
  data() {
    return {
      audioList: []
    }
  },
  computed: {},
  mounted() {
    this.$emitter.on(GET_AUDIO_RESOURCE_LIST_RESULT, (list) => {
      this.audioList = list
    })
    this.$emitter.emit(GET_AUDIO_RESOURCE_LIST)
  }
}
</script>

<style lang="scss"></style>
